<!DOCTYPE html>
<head>
    <script src="/static/sources/cookie.js"></script>
    <script src="/static/sources/jquery-3.6.0.min.js"></script>
    <script src="/static/sources/base64code.js"></script>
    <link rel="stylesheet" type="text/css" href="/static/sources/login/login.css">
</head>
<body>
    <form id="userConnect" onsubmit="userConnect();return false;">
        <div id="choose">
            <button id="register" type="button" onclick="switchUserConnect('register','login')">注册</button>
            <button id="login" type="button" onclick="switchUserConnect('login','register')">登录</button>
        </div>
        <div id="user" style="width:100%;height:auto;">
            <input id="getUsername" type="text" placeholder="用户名(长度限制 1~30)" autocomplete="on">
            <br />
            <span id="wrongUsername"></span>
    </div>
    <div id="passwd" style="width:100%;height:auto;">
        <input id="getPassword" type="password" placeholder="密码(长度限制 7~30)" autocomplete="off">
        <br />
        <span id="wrongPassword"></span>
    </div>
    <div id="check_passwd" style="width:100%;height:auto;">
        <input id="checkPassword" type="password" placeholder="确认密码" autocomplete="off">
        <br />
        <span id="wrongCheckPassword"></span>
    </div>
    <label style="display:flex;justify-content:center;"><input style="outline:none;" type="checkbox"
        id="ifUpdateCookie">以后自动登录</label>
        <button id="submit" type="submit">提交</button>
    </form>
    <h1 id="welcome"></h1>
    <script src="/static/sources/login/login.js"></script>
</body>